import request from '@/utils/request'

// export interface AttrModel {
//     id?: number
//     attrName: string
//     categoryId: number | undefined
//     categoryLevel: number
//     attrValueList: AttrValueModel[]
//   }
 // 分类第一个
export interface CateModel{
    cid:number
    title:string
    name:string
    pageView:number
    categories:any
}
// 分类第二个
export interface ListModel{
    pageNo:number
    pageSize:number
    hasMore:boolean
    totalCount:number
    categoryId:number
    categoryName:string
    categoryTitle:string
}
export default{
    // reqAttrList(category1Id: number, category2Id: number, category3Id: number) {
    //     return request.get<any, AttrModel[]>(`/admin/product/attrInfoList/${category1Id}/${category2Id}/${category3Id}`)
    //   },
    // https://m.ximalaya.com/revision/subject/category
    // 分类第一个
    reqListen() {
        return request.get<any,CateModel[]>(`/revision/subject/category`)
      },
 // 分类第二个
 reqList(title:string,pageNum:number,pageSize:number) {
    return request.get<any,any>(`/revision/subject/categorySubjectList/${title}?pageNum=${pageNum}&pageSize=${pageSize}`)
  },
      
   // 排行榜第一个
 reqTop(sceneId:number) {
  return request.get<any,any>(`/revision/rank/v4/rankTabs?sceneId=${sceneId}`)
}

}